﻿//-----------------------------------------------------------------------
// <copyright file="BundleConfig.cs" company="CronopioDD">
//     Copyright CronopioDD. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace ProyectoGoya
{
    using System.Web.Optimization;

    /// <summary>
    /// BundleConfig class
    /// </summary>
    public class BundleConfig
    {
        #region Constructor        

        /// <summary>
        /// Prevents a default instance of the BundleConfig class from being created
        /// </summary>
        private BundleConfig()
        {            
        }

        #endregion

        #region Public Methods

        /// <summary>
        /// Method for registering bundles
        /// </summary>
        /// <param name="bundles">css and js files after minification</param>
        public static void RegisterBundles(BundleCollection bundles)
        {
            if (bundles != null)
            {
                bundles.Add(new ScriptBundle("~/bundles/jquery").Include("~/Scripts/jquery-1.*"));

                bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include("~/Scripts/jquery-ui*"));

                bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include("~/Scripts/jquery.unobtrusive*", "~/Scripts/jquery.validate*"));

                bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/style.css", "~/Content/jquery-ui-1.8.21.custom.css"));
            }
        }

        #endregion
    }
}